# -*- coding: utf-8 -*-
# @Time    : 2020/6/3 18:11
# @Author  : Leeli
# @Email   : lililove2000@163.com
# @File    : main.py
# @Software: PyCharm

from kivy.app import App  # 导入Kivy的App基类
from kivy.uix.gridlayout import GridLayout  # 引入布局


# 布局类
class GridLayoutWidget(GridLayout):
    # 初始化
    def __init__(self, **kwargs):
        super().__init__(**kwargs)


# 继承App类
class GridApp(App):
    # 实现App类的build()方法
    def build(self):
        # 返回根控件
        return GridLayoutWidget()


if __name__ == "__main__":  # 程序入口
    GridApp().run()  # 启动应用程序
